﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crude.Common;

namespace Crude.Core.Repository
{
    public class RemoteRepositoryBuilder
    {
        public IRemoteRepository Build()
        {
            CrudeSettingsState crudeSettingsState = new CrudeSettingsStateLoader().Load();

            return new FileSystemRemoteRepository(crudeSettingsState.RemoteRepositoryPath,
                crudeSettingsState.LocalRepositoryPath);
        }
    }
}
